attribute vec4 position;
attribute vec4 color;
attribute vec3 normal;
attribute vec2 texcoord;


uniform mat4 ModeMatrix;
uniform mat4 ViewMatirx;
uniform mat4 ProjectionMatrix;
uniform mat4 NormalMatrix;

varying vec4 V_Color;
varying vec2 V_Texcoord;
varying vec3 V_Normal;
varying vec4 V_WorldPos;
void main()
{
  V_Color=color;
  V_Texcoord=texcoord;
  V_Normal=mat3(NormalMatrix)*normal;                      //partialProject to woldProjection
  V_WorldPos = ModeMatrix*vec4(position.x,position.y,position.z,1.0);
  gl_Position = ProjectionMatrix*ViewMatirx*ModeMatrix*position;
}